import http from "@/utils/http/index";

// 获取行情数据
export const getGoldMarket = (data: any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.policy/getGoldMarket`,
    data,
  });
};
// 添加品类
export const setCategory = (data: any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.policy/setCategory`,
    data,
  });
};
// 删除品类
export const removeCategory = (data: any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.policy/remove_category`,
    data,
  });
};
// 删除策略
export const removeStrategy = (data: any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.policy/remove_strategy`,
    data,
  });
};
// 设置品类顺序
export const getPolicySort = (data: any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.policy/getPolicySort`,
    data,
  });
};
// 获取品类列表
export const getPolicy = (data: any) => {
  return http<any>({
    method: "GET",
    url: `/bjp/api.auth.policy/getPolicy`,
    data,
  });
};
// 获取策略列表
export const getPolicyItem = (data: any) => {
  return http<any>({
    method: "GET",
    url: `/bjp/api.auth.policy/getPolicyItem`,
    data,
  });
};
// 获取策略详情
export const getPolicyItemDetail = (data: any) => {
  return http<any>({
    method: "GET",
    url: `/bjp/api.auth.policy/getPolicyItemDetail`,
    data,
  });
};
// 添加策略
export const setCategoryItem = (data: any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.policy/setCategoryItem`,
    data,
  });
};
// 手动报价设置
export const setQuotation = (data: any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.businessMy/setQuotation`,
    data,
  });
};
// 手动报价获取
export const getHand = (data: any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.policy/getHand`,
    data,
  });
};
// 手动报价修改
export const setHand = (data: any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.policy/setHand`,
    data,
  });
};
// 高级报价计算
export const getAdvancedComputing = (data: any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.policy/getAdvancedComputing`,
    data,
  });
};
// 修改策略帖水
export const setGoldMarket = (data: any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.policy/setGoldMarket`,
    data,
  });
};
// 修改策略固定价
export const setGoldFixedprice = (data: any) => {
  return http<any>({
    method: "POST",
    url: `/bjp/api.auth.policy/setGoldFixedprice`,
    data,
  });
};
